Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Managing Quaternions


Q3Quaternion_SetRotateX

You can use the Q3Quaternion_SetRotateX function to configure a quaternion that rotates objects around the x axis.

TQ3Quaternion *Q3Quaternion_SetRotateX (
TQ3Quaternion *quaternion, 
float angle);
quaternion
A quaternion.
angle
The desired angle of rotation around the x coordinate axis, in radians.
DESCRIPTION
The Q3Quaternion_SetRotateX function returns, as its function result and in the quaternion parameter, a quaternion that rotates an object by the angle angle around the x axis.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996